#include "loadingdlg.h"
#include "ui_loadingdlg.h"
#include"chatuserwid.h"
LoadingDlg::LoadingDlg(QWidget *parent)
    : QDialog(parent)
    , ui(new Ui::LoadingDlg)
{
    ui->setupUi(this);

    setWindowFlags(Qt::Dialog | Qt::FramelessWindowHint | Qt::WindowSystemMenuHint | Qt::WindowStaysOnTopHint);
    //设置背景透明
    setAttribute(Qt::WA_TranslucentBackground);

    //设置尺寸
    setFixedSize(QSize(300,100));

    QMovie *movie=new QMovie((":/images/loading.gif"));
    movie->setScaledSize(QSize(50,50));
    ui->loading_lb->setMovie(movie);

    movie->start();
}

LoadingDlg::~LoadingDlg()
{
    delete ui;
}
